package com.example.demo.service.impl;

import com.example.demo.mapper.RatingMapper;
import com.example.demo.service.RatingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RatingServiceImpl implements RatingService {

  @Autowired
  private RatingMapper ratingMapper;

//  小于4.8
  @Override
  public int else_small() {
    int result = ratingMapper.else_small();
    return result;
  }

  @Override
  public int else_medium() {
    int result = ratingMapper.else_medium();
    return result;
  }

  @Override
  public int else_large() {
    int result = ratingMapper.else_large();
    return result;
  }

  @Override
  public int else_all() {
    int result = ratingMapper.else_all();
    return result;
  }


//  4.8
  @Override
  public int four_eight_small() {
    int result = ratingMapper.four_eight_small();
    return result;
  }

  @Override
  public int four_eight_medium() {
    int result = ratingMapper.four_eight_medium();
    return result;
  }

  @Override
  public int four_eight_large() {
    int result = ratingMapper.four_eight_large();
    return result;
  }

  @Override
  public int four_eight_all() {
    int result = ratingMapper.four_eight_all();
    return result;
  }

//  4.9
  @Override
  public int four_nine_small() {
    int result = ratingMapper.four_nine_small();
    return result;
  }

  @Override
  public int four_nine_medium() {
    int result = ratingMapper.four_nine_medium();
    return result;
  }

  @Override
  public int four_nine_large() {
    int result = ratingMapper.four_nine_large();
    return result;
  }

  @Override
  public int four_nine_all() {
    int result = ratingMapper.four_nine_all();
    return result;
  }

  //  5.0

  @Override
  public int five_small() {
    int result = ratingMapper.five_small();
    return result;
  }

  @Override
  public int five_medium() {
    int result = ratingMapper.five_medium();
    return result;
  }

  @Override
  public int five_large() {
    int result = ratingMapper.five_large();
    return result;
  }

  @Override
  public int five_all() {
    int result = ratingMapper.five_all();
    return result;
  }
}
